package com.yeyaomai.dksns.flowis.service;

import java.util.List;

import org.springframework.data.domain.Page;
import com.yeyaomai.dksns.flowis.domain.FlowRole;

public interface FlowRoleService {

	void addFlowRole(FlowRole flowRole);

	boolean isExistFlowRole(String roleName);
	
	void updateFlowRole(FlowRole flowRole);
	
	void deleteFlowRole(Long roleId);

	FlowRole getFlowRoleByRoleId(Long roleId);
	
     FlowRole  getFlowRoleUserByUserId(Long userId);

	Page<FlowRole>  listFlowRole(Integer currentpage);
	
	List<FlowRole> listFlowRoleByStatus();
}
